package cn.xiaohuodui.service;

import cn.xiaohuodui.dao.BannerMapper;
import cn.xiaohuodui.model.Banner;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * Created by TR on 2018/3/30.
 */
@Service
public class BannerService {

    @Autowired
    BannerMapper bannerMapper;

    public List<Banner> getByPosition(Integer position){
        return bannerMapper.getByPosition(position);
    }
}
